/**
 * 
 */
package cc.dogtailflower.framework.util;

import java.util.Collection;
import java.util.Map;

/**
 * 集合工具类
 * @author cc
 *
 */
public class CollectionUtil {

	public static boolean isEmpty(Collection<?> collection){
		
		if(collection == null){
			return true;
		}else{
			return collection.size() == 0 ? true:false;
		}
	}
	
	public static boolean isNotEmpty(Collection<?> collection){
		return !isEmpty(collection);
	}
	
	public static boolean isEmpty(Map<?,?> map){
		
		if(map == null){
			return true;
		}else{
			return map.size() == 0 ? true:false;
		}
	}
	
	public static boolean isNotEmpty(Map<?,?> map){
		return !isEmpty(map);
	}
}
